package cn.jiyun.feign;

import cn.jiyun.pojoday12.CompetDTO;
import cn.jiyun.pojoday12.CompetEmp1;
import cn.jiyun.pojoday12.CompetPaperVO;
import cn.jiyun.pojoday12.CompetVO;
import com.github.pagehelper.PageInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Author: 小周
 * @Package: cn.jiyun.feign
 * @Project: 2210A-project1
 * @name: TestService
 * @Date: 2023/8/23 19:34
 * @Filename: TestService
 */
@FeignClient(value = "day12compet")
public interface TestService {



    @RequestMapping("/compet/findcom")
    public String findCom(@RequestParam("eid") String eid);

    //根据用户id  去查询竞赛数量
    @RequestMapping("/compet/toComAll")
    PageInfo<CompetVO> toComAll(@RequestBody CompetDTO competDTO);

    @RequestMapping("/compet/saveCompet")
    CompetVO saveCompet(@RequestBody CompetEmp1 competEmp1);

    @RequestMapping("/compet/findPaperByCid")
    List<CompetPaperVO> findPaperByCid(@RequestParam("cid") String cid);
    @RequestMapping("/compet/findMyCompet")
    List<CompetVO> findMyCompet(@RequestParam("eid") String eid);
}
